<%@page import="net.sf.json.JSONObject"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@ page language="java" pageEncoding="UTF-8" %>
<%
	response.setCharacterEncoding("UTF-8");
	response.setContentType("application/json; charset=UTF-8");

	String param = request.getParameter("username");
	
	System.out.println("请求参数：" + param);
	
	Map<String, Object> map = new HashMap<String, Object>();
	map.put("success", true);
	map.put("msg", "成功！");
	
	JSONObject json = JSONObject.fromObject(map);
	
	out.write(json.toString());
%>